package com.sooncode.project.focusservice.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sooncode.project.core.annotations.Lookup;
import com.sooncode.project.core.annotations.LookupModel;
import com.sooncode.project.focusservice._.base.BaseDomainModel;
import lombok.Data;

import java.util.Date;

@Data
@LookupModel
public class CourseHour extends BaseDomainModel<CourseHour> {
    private String memberId;
    @Lookup(fromModel = Member.class,localField = "memberId",fromField = "name")
    private String name;
    @Lookup(fromModel = Member.class,localField = "memberId",fromField = "orgId")
    private String orgId;
    @Lookup(fromModel = Member.class,localField = "memberId",fromField = "orgName")
    private String orgName;
    private double hour;
    private String operator;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date atDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    private String notes;
    private String courseName;
}
